home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6608 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  976 b 

  1. Path: rgfn.epcc.edu!ai282
  2. From: ai282@rgfn.epcc.edu (Dan Tulloh)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Leap Years
  5. Date: Fri, 16 Feb 1996 16:24:19 GMT
  6. Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX
  7. Message-ID: <1996Feb16.162419.27784@rgfn.epcc.edu>
  8. X-Newsreader: TIN [version 1.2 PL2]
  9. References: <8BA8405.02C70020E1.uuout@sourcebbs.com> <4fsk14$jo2@kocrsv08.delcoelect.com>
  10. Distribution: usa
  11.  
  12. Richard E. Fiegle (refiegle@mail.delcoelect.com) wrote:
  13. > david.mohorn@sourcebbs.com (DAVID MOHORN) wrote:
  14. > >How do you feature out leap years?  If its evenly divisible by 400 and
  15. > >4?
  16. > >
  17.  
  18. > Anything divisible by 4 is already guaranteed to be
  19. > divisible by 400.
  20.  
  21. uh...I think you meant that anything divisible by 400
  22. is guaranteed to be divisible by 4.
  23.  
  24. Any year that is evenly divisible by 4 is a leap year
  25. unless it is a century year, in which case it needs to
  26. be evenly divisble by 400.   ie, 1996 and 2000 are 
  27. leap years, but 1900 is not.
  28.  
  29. Dan
  30.